<form action="{url()}" method="post" class="uk-form uk-form-horizontal" id="form">
    <div class="uk-form-row">
        <label class="uk-form-label">用户组</label>
        <div class="uk-form-controls">

            <select class="input" name="group_id">
                <!--loop{$groupList as $vo}-->
                <option value="{$vo.group_id}" <!--if{$info['group_id']==$vo[ 'group_id']}-->
                selected="selected"
                <!--{/if}-->
                >{$vo.cname}</option>
                <!--{/loop}-->
            </select>
            <span class="uk-form-help-inline"></span>
        </div>
    </div>
    <div class="uk-form-row">
        <label class="uk-form-label">用户名</label>
        <div class="uk-form-controls">
            <input type="text" class="uk-form-width-large" id="username" name="username" datatype="s" value="{$info.username}">
        </div>
    </div>
    <div class="uk-form-row">
        <label class="uk-form-label">姓名</label>
        <div class="uk-form-controls">
            <input type="text" class="uk-form-width-large" id="nicename" name="nicename" datatype="s" value="{$info.nicename}">
        </div>
    </div>
    <div class="uk-form-row">
        <label class="uk-form-label">邮箱</label>
        <div class="uk-form-controls">
            <input type="text" class="uk-form-width-large" id="email" name="email" datatype="e" value="{$info.email}">
        </div>
    </div>
    <div class="uk-form-row">
        <label class="uk-form-label">QQ</label>
        <div class="uk-form-controls">
            <input type="text" class="uk-form-width-large" id="qq" name="qq" datatype="n" value="{$info.qq}">
        </div>
    </div>
    <div class="uk-form-row">
        <label class="uk-form-label">密码</label>
        <div class="uk-form-controls">
            <div class="uk-form-password">
                <input type="password" class="uk-form-width-large" id="password" name="password" value=""><a href="" class="uk-form-password-toggle" data-uk-form-password="{lblShow:'显示', lblHide:'隐藏'}">显示</a>
            </div>
        </div>
    </div>
    <div class="uk-form-row">
        <label class="uk-form-label">用户状态</label>
        <div class="uk-form-controls uk-form-controls-text">
            <label class="uk-margin-right">
                <?php if(!isset($info[ 'status'])) $info[ 'status']=1 ; ?>
                <!--if{$info['status']}-->
                <input name="status" value="1" checked="checked" type="radio">
                <!--{else}-->
                <input name="status" value="1" type="radio">
                <!--{/if}-->
                正常</label>
            <label class="uk-margin-right">
                <!--if{!$info['status']}-->
                <input name="status" checked="checked" value="0" type="radio">
                <!--{else}-->
                <input name="status" value="0" type="radio">
                <!--{/if}-->
                禁用</label>
        </div>
    </div>
    <div class="uk-form-row">
        <label for="form-mailer" class="uk-form-label"></label>
        <div class="uk-form-controls">
            <input type="hidden" name="user_id" type="hidden" value="{$info.user_id}">
            <button class="uk-button uk-button-primary" type="submit">保存</button>
            <button class="uk-button" type="reset">重置</button>
        </div>
    </div>
</form>
<script>
    Do.ready('base', function () {
        $('#form').duxForm();
    });
</script>